/*******************************************************************************
Autores: 
-Eddy Omar Castro Jauregui - 11032
-Marta Alejandra del Valle Lau - 11053
-Cristian Gustavo Castro Xum - 11129
Seccion: 20
Fecha: octubre de 2011
Nombre del archivo: Inicio.java
Breve descripcion: Esta clase se utiliza para el frame principal que cuenta con 
los botones con las diferentes categorias.
*******************************************************************************/

package proyecto2;

import com.sun.awt.AWTUtilities;
import java.awt.Color;
import java.awt.Cursor;
import javax.swing.JLabel;

public class Inicio extends javax.swing.JPanel {

    /** Creates new form Inicio */
    public Inicio() {
        initComponents();
        this.setSize(531,536);  

    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        informatica = new javax.swing.JLabel();
        bank = new javax.swing.JLabel();
        tarjet = new javax.swing.JLabel();
        candado = new javax.swing.JLabel();
        auto = new javax.swing.JLabel();
        bookmark = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();

        setPreferredSize(new java.awt.Dimension(583, 503));

        informatica.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        informatica.setIcon(new javax.swing.ImageIcon(getClass().getResource("/proyecto2/informatica.png"))); // NOI18N
        informatica.setToolTipText("Cuentas Informáticas");
        informatica.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                informaticaMouseClicked(evt);
            }
        });
        informatica.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                informaticaMouseMoved(evt);
            }
        });

        bank.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        bank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/proyecto2/money.png"))); // NOI18N
        bank.setToolTipText("Cuentas bancarias");
        bank.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                bankMouseClicked(evt);
            }
        });
        bank.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                bankMouseMoved(evt);
            }
        });

        tarjet.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        tarjet.setIcon(new javax.swing.ImageIcon(getClass().getResource("/proyecto2/tarjeta.png"))); // NOI18N
        tarjet.setToolTipText("Tarjetas de crédito o débito");
        tarjet.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tarjetMouseClicked(evt);
            }
        });
        tarjet.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                tarjetMouseMoved(evt);
            }
        });

        candado.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        candado.setIcon(new javax.swing.ImageIcon(getClass().getResource("/proyecto2/candado.png"))); // NOI18N
        candado.setToolTipText("Candados");
        candado.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                candadoMouseClicked(evt);
            }
        });
        candado.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                candadoMouseMoved(evt);
            }
        });

        auto.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        auto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/proyecto2/carro.png"))); // NOI18N
        auto.setToolTipText("Automoviles");
        auto.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                autoMouseClicked(evt);
            }
        });
        auto.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                autoMouseMoved(evt);
            }
        });

        bookmark.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        bookmark.setIcon(new javax.swing.ImageIcon(getClass().getResource("/proyecto2/bookmark.png"))); // NOI18N
        bookmark.setToolTipText("Bookmarks");
        bookmark.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                bookmarkMouseClicked(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        jLabel1.setText("Bookmarks");

        jLabel2.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        jLabel2.setText("Automoviles");

        jLabel3.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        jLabel3.setText("Candados");

        jLabel4.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        jLabel4.setText("Tarjetas de crédito/débito");

        jLabel5.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        jLabel5.setText("Cuentas informáticas");

        jLabel6.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N
        jLabel6.setText("Cuentas bancarias");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(81, 81, 81)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jLabel5))
                            .addComponent(tarjet, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(informatica)
                            .addComponent(bookmark, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(115, 115, 115)
                        .addComponent(jLabel1)))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(14, 14, 14)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(78, 78, 78)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGap(40, 40, 40)
                                        .addComponent(jLabel3))
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(jLabel6)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(candado, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(auto)))))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(68, 68, 68)
                                .addComponent(bank))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(125, 125, 125)
                        .addComponent(jLabel2)))
                .addGap(273, 273, 273))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(bank, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel6)
                        .addGap(4, 4, 4)
                        .addComponent(candado, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel3)
                        .addGap(19, 19, 19)
                        .addComponent(auto, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(informatica)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel5)
                        .addGap(13, 13, 13)
                        .addComponent(tarjet, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(15, 15, 15)
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bookmark, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jLabel2))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

private void informaticaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_informaticaMouseClicked
// TODO add your handling code here:
    InterInformatica interfaz = new InterInformatica();
    interfaz.setVisible(true);

}//GEN-LAST:event_informaticaMouseClicked

private void informaticaMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_informaticaMouseMoved
// TODO add your handling code here:
    informatica.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));  
}//GEN-LAST:event_informaticaMouseMoved

private void tarjetMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tarjetMouseMoved
// TODO add your handling code here:
    tarjet.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));  
}//GEN-LAST:event_tarjetMouseMoved

private void candadoMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_candadoMouseMoved
// TODO add your handling code here:
    candado.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));  
}//GEN-LAST:event_candadoMouseMoved

private void autoMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_autoMouseMoved
// TODO add your handling code here:
    auto.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));  
}//GEN-LAST:event_autoMouseMoved

private void bankMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bankMouseMoved
// TODO add your handling code here:
    bank.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));  
}//GEN-LAST:event_bankMouseMoved

private void bookmarkMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bookmarkMouseClicked
// TODO add your handling code here:
    bookmark.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
}//GEN-LAST:event_bookmarkMouseClicked

    private void bankMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bankMouseClicked
        // TODO add your handling code here:
    InterBancaria interfaz = new InterBancaria();
    interfaz.setVisible(true);        
    }//GEN-LAST:event_bankMouseClicked

    private void tarjetMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tarjetMouseClicked
        // TODO add your handling code here:
    InterTarjeta interfaz = new InterTarjeta();
    interfaz.setVisible(true);
    }//GEN-LAST:event_tarjetMouseClicked

    private void candadoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_candadoMouseClicked
        // TODO add your handling code here:
        InterCandado interfaz = new InterCandado();
        interfaz.setVisible(true);       
    }//GEN-LAST:event_candadoMouseClicked

    private void autoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_autoMouseClicked
        // TODO add your handling code here:
        InterAutomovil interfaz = new InterAutomovil();
        interfaz.setVisible(true);
    }//GEN-LAST:event_autoMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel auto;
    private javax.swing.JLabel bank;
    private javax.swing.JLabel bookmark;
    private javax.swing.JLabel candado;
    private javax.swing.JLabel informatica;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel tarjet;
    // End of variables declaration//GEN-END:variables
}
